package com.hb.study.design_patterns.chain_of_responsibility;

/**
 * 空对象模式
 *
 * @author Mr.Huang
 * @version v0.1, NullChain.java, 2020/6/16 11:08, create by huangbiao.
 */
public class NullChain extends AbstractChain {

    public NullChain(int step) {
        super(step);
    }

    @Override
    void doChain() {
        System.out.println("NullChain do nothing");
    }

    public static NullChain build(int step) {
        return new NullChain(step);
    }

}

    